"""FawsnSuggestSystem URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url, include, static
from django.contrib import admin
import xadmin
from common.views import *
from suggest.views import *
import mdeditor
from FawsnSuggestSystem import settings

urlpatterns = [
                  url(r'^admin/', admin.site.urls),
                  url(r'^xadmin/', xadmin.site.urls),
                  url(r'^accounts/login/', login),
                  url(r'^accounts/logout/', logout),
                  url(r'mdeditor/', include('mdeditor.urls')),
                  url(r'^$', index),
                  url(r'^login/', login),
                  url(r'^logout/', logout),
                  url(r'^searchUser/', searchUser),
                  url(r'^suggest/$', SuggestView.as_view(), name='suggest'),
                  url(r'^suggest_list/$', SuggestListView.as_view(), name='suggest_list'),
                  url(r'^suggest_audit/', SuggestAuditView.as_view(), name='suggest_audit'),
                  url(r'^suggest_audit_list/', SuggestAuditListView.as_view(), name='suggest_audit_list'),
                  url(r'^suggest_audited_list/', SuggestAuditedListView.as_view(), name='suggest_audited_list'),
                  url(r'^project/', ProjectView.as_view(), name='project'),
                  url(r'^project_record/', ProjectRecordView.as_view(), name='project_record'),
              ] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
